package com.qfmy.web.app.controller.conmon;

import com.qfmy.common.result.Result;
import com.qfmy.model.vo.common.SignRewardRuleVo;
import com.qfmy.web.app.service.conmon.SignRewardRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 清风明月
 * @Package com.qfmy.web.app.controller.conmon
 * @date 2025/11/6
 * @description 签到奖励表
 */
@RestController
@RequestMapping("/app/signRewardRule")
public class SignRewardRuleController {

    /**
     * 注入service
     */
    @Autowired
    private SignRewardRuleService signRewardRuleService;

    /**
     * 获取签到奖励
     */
    @RequestMapping("/getSignRewardRule")
    public Result<List<SignRewardRuleVo>> getSignRewardRule() {
        List<SignRewardRuleVo> list = signRewardRuleService.getSignRewardRule();
        return Result.ok(list);
    }

}
